home *** CD-ROM | disk | FTP | other *** search
/ Disc to the Future 2 / Disc to the Future Part II Programmer's Reference (Wayzata Technology)(6013)(1992).bin / MAC / THINKC / TCL1 / CTRACE2_ / CLOGLIST.H < prev    next >
Text File  |  1990-12-10  |  775b  |  27 lines

  1. /*****     
  2.     from CTRACE: A MESSAGE LOGGING CLASS
  3.     by William D. Cramer in Dr. Dobbs Journal #170, p. 44-55, 116-120.
  4. *****/
  5.  
  6. /** CLogList.h -- Definitions for a LogList object. **/
  7. #define _H_CLogList
  8.  
  9. #include <CList.h>        /* definitions for superclass */
  10. #include <oops.h>        /* standard OOP definitions */
  11. #include <string.h>        /* miscellaneous string definitions */
  12.  
  13. #define MAX_LOGREC_CHAR (200L)    /* size of longest entry (inc NULL) */
  14.  
  15. struct CLogList : CList
  16. {
  17.     /* internal instance data */
  18.     short        maxRec;     /* maximum number of records */
  19.     /* local class methods */
  20.     void    ILogList (short records);
  21.     void    AddString (char *theString);
  22.     void    GetString (short which, char *theString);
  23.     short    GetMaxRecordCount (void);
  24.     /* inherited methods overriden */
  25.     void    Dispose (void);
  26. };
  27.